package day15_Thread.demo07_刘关张;

public class Thread extends java.lang.Thread {
    public Thread() {
    }

    public Thread(String name) {
        super(name);
    }

    @Override
    public void run() {
        for (int i = 1; i <=100; i++) {
            System.out.println(Thread.currentThread().getName()+":"+i);
            if (i==55){
                stop();
            }
        }
    }
}
